<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex主轴方法</title>
    <style>
        div{
            /* 首先先给父盒子添加flex属性 */
            display: flex;
            width: 800px;
            height: 300px;
            background-color: pink;
            /*  默认主轴是X轴 行 row 那么y轴就是侧轴 */
            /* 元素是跟着主轴的方法排列的 */
            flex-direction: row;
            /* 主轴翻转  简单了解  主轴翻转是在父盒子当中*/
            flex-direction: row-reverse;
        }
        span{
            width: 150px;
            height: 100px;
            background-color: purple;
        }
    </style>
</head>
<body>
    <div>
        <span>1</span>
        <span>2</span>
        <span>3</span>
    </div>
</body>
</html>